package com.pj;

/**
 * @author: szy
 * @program: pj-novel
 * @description: 测试类
 * @create: 2022-11-14 11:58
 **/

public class test {
    public static void main(String[] args) {
        Integer test = test();
        System.out.println(test);
    }

    public static Integer test() {
        String catName = "kehuan";
        switch (catName) {
            case "xuanhuan":
                return 1;
            case "wuxia":
                return 2;
            case "dushi":
                return 3;
            case "lishi":
                return 4;
            case "kehuan":
                return 5;
            case "wangyou":
                return 6;
            case "mm":
                return 7;
        }
        return null;

    }
}
